package goquery

import 

// Add adds the selector string's matching nodes to those in the current
// selection and returns a new Selection object.
// The selector string is run in the context of the document of the current
// Selection object.
func ( *Selection) ( string) *Selection {
	return .AddNodes(findWithMatcher([]*html.Node{.document.rootNode}, compileMatcher())...)
}

// AddMatcher adds the matcher's matching nodes to those in the current
// selection and returns a new Selection object.
// The matcher is run in the context of the document of the current
// Selection object.
func ( *Selection) ( Matcher) *Selection {
	return .AddNodes(findWithMatcher([]*html.Node{.document.rootNode}, )...)
}

// AddSelection adds the specified Selection object's nodes to those in the
// current selection and returns a new Selection object.
func ( *Selection) ( *Selection) *Selection {
	if  == nil {
		return .AddNodes()
	}
	return .AddNodes(.Nodes...)
}

// Union is an alias for AddSelection.
func ( *Selection) ( *Selection) *Selection {
	return .AddSelection()
}

// AddNodes adds the specified nodes to those in the
// current selection and returns a new Selection object.
func ( *Selection) ( ...*html.Node) *Selection {
	return pushStack(, appendWithoutDuplicates(.Nodes, , nil))
}

// AndSelf adds the previous set of elements on the stack to the current set.
// It returns a new Selection object containing the current Selection combined
// with the previous one.
// Deprecated: This function has been deprecated and is now an alias for AddBack().
func ( *Selection) () *Selection {
	return .AddBack()
}

// AddBack adds the previous set of elements on the stack to the current set.
// It returns a new Selection object containing the current Selection combined
// with the previous one.
func ( *Selection) () *Selection {
	return .AddSelection(.prevSel)
}

// AddBackFiltered reduces the previous set of elements on the stack to those that
// match the selector string, and adds them to the current set.
// It returns a new Selection object containing the current Selection combined
// with the filtered previous one
func ( *Selection) ( string) *Selection {
	return .AddSelection(.prevSel.Filter())
}

// AddBackMatcher reduces the previous set of elements on the stack to those that match
// the matcher, and adds them to the current set.
// It returns a new Selection object containing the current Selection combined
// with the filtered previous one
func ( *Selection) ( Matcher) *Selection {
	return .AddSelection(.prevSel.FilterMatcher())
}